package com.ls.pattern.behavior.chain_responsibility;

//批准人 部门主任-院长-副校长-校长
public abstract class Approver {

    Approver nextApprover;//下一个处理者
    private String name;

    public abstract void processRequest(PurchaseRequest request);//处理审批请求的方法

    public Approver(String name) {
        this.name = name;
    }


    public void setNextApprover(Approver nextApprover) {
        this.nextApprover = nextApprover;
    }
}
